package com.example.chinesenation.Entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author sakuraFallingDown
 * @since 2021-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 标题
     */
    private String title;

    /**
     * 民族
     */
    private String nationName;

    /**
     * 文章发布时间
     */
    private Timestamp publishDate;

    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;

    /**
     * 来源及作者等相关信息
     */
    private String tag;

    /**
     * 分类
     */
    private String categoryName;//大的分类
    private String moduleName;//具体模块

    /**
     * 内容
     */
    private String content;

    private int pageview;//浏览次数

    private Integer isDeleted;


}
